<?php
/**
 * Created by 荣耀电竞.
 * User: 林子彦 <278805354@qq.com>
 * Date: 2018/6/12 0012
 * Time: 10:04
 */
Route::group(['prefix'=>'shop'], function() {
       //权限
        Route::get('/goods/{id}', ['uses' => 'GoodsController@index'])->where('goods_id', '[0-9]+');;  //后台管理首页
        Route::get('/cart/add', ['uses' => 'CartController@add'])->where('goods_id', '[0-9]+');;  //后台管理首页


    Route::group(['middleware' => ['response','transaction']], function () {
        Route::get('/goodsclass/index', ['uses' => 'GoodsClassController@index']);  //后台管理首页
    });

});